<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>时间微调器操作 - jQuery EasyUI 演示</title>
	<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
	<link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="../../themes/icon.css">
	<link rel="stylesheet" type="text/css" href="../demo.css">
	<script type="text/javascript" src="../../jquery.min.js"></script>
	<script type="text/javascript" src="../../jquery.easyui.min.js"></script>
</head>
<body>
	<h2 title="TimeSpinner Actions">时间微调器操作</h2>
	<p title="Click the buttons below to perform actions.">　　点击以下按钮可执行相应操作。</p>
	<div style="margin:10px 0;">
		<a href="#" class="easyui-linkbutton" onclick="getValue()">取值</a>
		<a href="#" class="easyui-linkbutton" onclick="setValue()">设值</a>
		<a href="#" class="easyui-linkbutton" onclick="disable()">禁用</a>
		<a href="#" class="easyui-linkbutton" onclick="enable()">启用</a>
	</div>
	<div class="easyui-panel" style="width:100%;max-width:200px;padding:10px 20px;">
		<div style="margin-bottom:0px">
			<input id="dt" class="easyui-timespinner" label="选时：" labelPosition="left" labelWidth="50" labelAlign="right" value="01:20" style="width:100%;">
		</div>
	</div>
	<script>
		function getValue(){
			var val = $('#dt').timespinner('getValue');
			alert(val);
		}
		function setValue(){
			$('#dt').timespinner('setValue', '09:45');
		}
		function disable(){
			$('#dt').timespinner('disable');
		}
		function enable(){
			$('#dt').timespinner('enable');
		}
	</script>
</body>
</html>